<div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="index.html">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">作品管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="/index.php/my/system/kouliangpeizhi.html" method="post">
                    <table class="search-tab">
                        <tr>
                           
                            <td>&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-primary btn2" href="{:U('Shangchuan/add')}">现在添加</a></td>
							
						
							
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th>id</th>
                            <th>上传时间</th>
							<th>详情</th>
                            <th>操作</th>
                        </tr>
                        <foreach name="re" item="v">
                        <tr>
                           <td>{$v.id}</td>
						   <td>{$v.time|date="Y-m-d H:i:s",###}</td>
						   <TD>
						   	   <!-- <a onclick="datu({$v.id})" style="cursor:pointer;"> -->
								 {$v.title}
								<!-- </a> -->
						  
						   </TD>
						   <td>
						      <a onclick="del({$v.id})" style="cursor:pointer;">删除</a>
						   </td>
                        </tr>
						</foreach>
                    </table>
                    <div class="list-page"> {$page}</div>
                </div>
            </form>
        </div>
    </div>
	
	<script>
	
	
		function datu(i){
			  layer.open({
				  type: 2,
				  title: '视频详情',
				  shadeClose: true,
				  shade: 0.8,
				  area: ['80%', '90%'],
				  content: '{:U("Index/big")}?id='+i //iframe的url
				}); 
			}

	  
	  function del(i){
	  
	    if(confirm('您确定删除吗')){
		
		  $.post("{:U('Shangchuan/del')}",{"id":i},function(re){
		  
		    if(re==1){
			  
			  alert('删除成功');
			  location.reload();
			
			}else{
			
			  alert('删除失败');
			
			}
		  
		  })
		
		}
	  
	  }
	
	</script>
	
